package cate.game.role.world.invite.msg;

import cate.common.game.invite.InviteDef;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBWorld;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "邀请配置", description = "把一些后端写死的配置发送给前端")
public class InviteConfResp implements MsgOutput {

    @NoteField("每日邀请创角数量上限")
    public int createTaskNumMax = InviteDef.getCreateTaskNumMax();

    @NoteField("每日邀请登录数量上限")
    public int loginTaskNumMax = InviteDef.getLoginTaskNumMax();

    @NoteField("每日拆登录红包数量上限")
    public int redPkgTaskNumMax = InviteDef.getRedPkgTaskNumMax();

    @NoteField(value = "最大邀请人数", detail = "无论是邀请创角、还是升级、支付，都受到这个最大关联人数限制，通俗讲，你最多只能从这个数量的新玩家身上受益")
    public int inviteeMax = InviteDef.INVITEE_MAX;

    @NoteField("充值元与赠送元宝的比例")
    public int payM1Rate = InviteDef.getPayM1Rate();

    @NoteField("充值元与赠送分享积分的比例")
    public int payInvitePointRate = InviteDef.getPayInvitePointRate();

    @NoteField(value = "充值元与赠送友情点的比例", detail = "该值等同于payInvitePointRate,因为后续策划做了改变，此处是为了兼容前端消息")
    public int payFriendshipRate = InviteDef.getPayInvitePointRate();

    @Override
    public MsgConfig conf() {
        return MsgIdBWorld.INVITE_CONF_RESP;
    }

}
